package com.spic.business.train.files.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 培训附件(除证书、心得体会以外的附件)对象 train_info_files
 * 
 * @author spic
 * @date 2021-10-15
 */
public class TrainInfoFiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 附件名 */
    //@Excel(className = "附件名")
    @NotNull
    private String name;

    /** 附件url */
    //@Excel(className = "附件url")
    @NotNull
    private String url;

    /** 附件类型 */
    //@Excel(className = "附件类型")
    private String fileType;

    /** 附件大小（K） */
    //@Excel(className = "附件大小", readConverterExp = "K=")
    private Long fileSize;

    /** $column.columnComment */
    //@Excel(className = "附件大小", readConverterExp = "$column.readConverterExp()")
    private String trainInfoId;

    private  Integer fileClassification;

    private String fileId;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public Integer getFileClassification() {
        return fileClassification;
    }

    public void setFileClassification(Integer fileClassification) {
        this.fileClassification = fileClassification;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setTrainInfoId(String trainInfoId) 
    {
        this.trainInfoId = trainInfoId;
    }

    public String getTrainInfoId() 
    {
        return trainInfoId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("trainInfoId", getTrainInfoId())
            .append("fileClassification", getFileClassification())
            .append("fileId", getFileId())
            .toString();

    }
}
